package kz.pdt12.hw.tests;

import kz.pdt12.hw.data.ContactData;
import kz.pdt12.hw.utils.SortedListOf;
import org.testng.annotations.Test;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.equalTo;

/**
 * Created with IntelliJ IDEA.
 * User: raimbek
 * Date: 21.03.13
 * Time: 12:52
 */
public class PrintPhonesTests extends TestBase {

    @Test
    public void printPhones() {
        SortedListOf<ContactData> contactsFromMainPage = app.getContactHelper().getUiContacts();
        SortedListOf<ContactData> printedContacts = app.getPrintPhonesHelper().getContacts();

        assertThat(contactsFromMainPage, equalTo(printedContacts));
    }
}
